<template>
  <div>
    <div class="title">
      <div style="padding: 0 40px">
        <a href="">茶叶</a>><a href="">全部</a>><a href="">白茶</a>><a href=""
          >白杜丹</a
        >
      </div>
    </div>
    <div class="content">
      <div class="content_one">
        <div class="left">
          <div class="imgbox">
            <img
              src="https://ccdn.goodq.top/caches/9b69daffc17579b848483c854813cad2/aHR0cDovLzVjZGQzYWE1YzQ2ZWEudDczLnFpZmVpeWUuY29tL3FmeS1jb250ZW50L3VwbG9hZHMvMjAxOS8wNC8wYWQzN2JkNDA4Y2NhYzBjMjRjYmY3N2IwNmI0ODg4MC04MDB4ODAwLTkwLndlYnA_p_p100_p_3D.webp"
              alt=""
            />
          </div>
        </div>
        <div class="right">
          <h1>白牡丹</h1>
          <p><span>¥1,235.0</span></p>
          <div>
            <p>
              饮茶不但是传统饮食文化，同时，由于茶中含有多种抗氧化物质与抗氧化营养素，对于消除自由基有一定的效果。因此喝茶也有助防老，具养生保健功能，每天喝三两杯茶可起到防老的作用。茶叶中含有多种维生素和氨基酸，喝茶对于清油解腻，增强神经兴奋以及消食利尿也具有一定的作用。
            </p>
          </div>
          <div><span>商品编号： BMD2145 </span></div>
          <span>分类：<a href="">白茶</a> </span>
          <button class="btn4" @click="btn">加入购物车</button>
          <div class="sc">
            <a href="" style="display: block"
              ><i class="el-icon-thumb"></i>收藏</a
            >
          </div>
        </div>
      </div>
      <div class="content_2">
        <div class="left_title">
          <div class="lll">
            <div class="boxx">
              <img
                src="https://ccdn.goodq.top/caches/9b69daffc17579b848483c854813cad2/aHR0cDovLzVjZGQzYWE1YzQ2ZWEudDczLnFpZmVpeWUuY29tL3FmeS1jb250ZW50L3VwbG9hZHMvMjAxOS8wNC8wYWQzN2JkNDA4Y2NhYzBjMjRjYmY3N2IwNmI0ODg4MC05MHg5MC05MC53ZWJw.webp"
                alt=""
              />
            </div>
          </div>
        </div>
        <div class="biaoti">
          <a href="">描述</a>
        </div>
        <div class="neirong">
          <span
            >饮茶不但是传统饮食文化，同时，由于茶中含有多种抗氧化物质与抗氧化营养素，对于消除自由基有一定的效果。因此喝茶也有助防老，具养生保健功能，每天喝三两杯茶可起到防老的作用。茶叶中含有多种维生素和氨基酸，喝茶对于清油解腻，增强神经兴奋以及消食利尿也具有一定的作用。
            但并不是喝得越多越好，也不是所有的人都适合喝茶。一般来说，每天1-2次，每次3-5克、400毫升的饮量是比较适当的。一般，人们说喝茶还指喝水。</span
          >
        </div>
        <div class="imgg">
          <img
            src="https://ccdn.goodq.top/caches/9b69daffc17579b848483c854813cad2/aHR0cDovLzVjZGQzYWE1YzQ2ZWEudDczLnFpZmVpeWUuY29tL3FmeS1jb250ZW50L3VwbG9hZHMvMjAxOS8wNC9iYmM0ZTQxZDFlYjVmNTk2NmE0MzIyYTZhMjhjNDVmZC05MC53ZWJw.webp"
            alt=""
          />
        </div>
        <h2>相关商品</h2>
        <ul>
          <li v-for="(i, $index) in newarr" :key="$index">
            <div class="imggg">
              <img :src="i.imgurl" alt="" />
            </div>
            <h3>{{i.title}}</h3>
            <span>{{i.jiage}}</span>
            {{newarr.title}}
          </li>
        </ul>
      </div>
    </div>
    
  </div>
</template>
<script>
export default {
  created() {
    console.log(this.$route);
    console.log(this.newarr);
  },
  methods: {
    btn(a) {
      this.$store.commit("m_arr", a);
    },
  },
  data() {
    return {
      newarr: this.$store.state.arr[0],
    };
  },
};
</script>
<style scoped>
.title > div > a {
  color: #444444;
  font-size: 14px;
}
.title {
  line-height: 60px;
}
.content_2 > ul {
  width: 100%;
}
.content_2 > ul > li > span {
  font-size: 16px;
  font-weight: normal;
  color: #8e8e8e;
}
.content_2 > ul > li > h3 {
  font-size: 16px;
  font-weight: normal;
  color: #8e8e8e;
  margin-bottom: 8px;
}
.imggg>img{
  width: 100%;
}
.imggg {
  width: 100%;
}
.content_2 > ul > li {
  width: 25%;
}
.content_2 > h2 {
  font-size: 20px;
  font-weight: normal;
  color: #555555;
  margin-bottom: 10px;
  margin-top: 20px;
}
.imgg > img {
  width: 100%;
  height: 100%;
}
.neirong {
  margin-top: 15px;
}
.neirong > span {
  font-size: 16px;
  font-weight: normal;
  color: #777777;
  line-height: 24px;
}
.biaoti {
  line-height: 44px;
  margin-top: 30px;
}
.biaoti > a {
  font-size: 15px;
  font-weight: bold;
  color: #000;
  margin-right: 25px;
  padding: 10px 15px;
  border-top: 5px solid #000;
}
* {
  list-style: none;
}
.lll {
  width: 50%;
}

.content_2 {
  padding: 0 200px;
}
.right > a {
  font-size: 12px;
  font-weight: normal;
  color: #777777;
  line-height: 20px;
}
.right > span > a {
  color: #627f9a;
}
.right > span {
  font-size: 14px;
  font-weight: normal;
  color: #777777;
  border-color: #dddddd;
  display: block;
  padding-bottom: 20px;
}
.right > div:nth-child(2) {
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}
.right > div {
  padding: 10px 0;

  font-size: 14px;
  font-weight: normal;
  color: #777777;
  border-color: #dddddd;
}
.right > div > p:nth-child(1) {
  font-size: 13px;
  font-weight: normal;
  color: #939393;
  line-height: 20px;
}
.right > p > span {
  font-size: 22px;
  font-weight: normal;
  color: #444444;
  font-family: sans-serif;
  line-height: 22px;
  display: inline-block;
  margin: 20px 0;
}
.right > h1 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: normal;
  color: #444444;
}
.right {
  /* padding: 0 30px; */
}
.imgbox {
  width: 100%;
  height: 100%;
}
.imgbox > img {
  width: 100%;
  height: 100%;
}
.title {
  padding-top: 80px;
  height: 60px;
  width: 100%;
}
.content {
  width: 100%;
  /* height: 900px; */
}
.content_one {
  /* width: 100%; */
  padding: 0 200px;

  height: 420px;
  display: flex;
}
.left {
  flex: 1;
  min-width: 450px;
}

.right {
  flex: 1;
  min-width: 450px;
}
.btn4 {
  background-image: none;
  font-size: 16px;
  font-weight: normal;
  color: #ffffff;
  border-color: #519f10;
  background-color: #519f10;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 24px;
  padding-right: 24px;
  /* margin-left: 20px; */
}
</style>